using System.ComponentModel.DataAnnotations;

namespace StudentManagement.Application.DTOs;

public class ClassDTO
{
    public int Id { get; set; }
    
    [Required(ErrorMessage = "班级名称不能为空")]
    [StringLength(100, ErrorMessage = "班级名称长度不能超过100个字符")]
    public string ClassName { get; set; }
    
    [Required(ErrorMessage = "年级不能为空")]
    [StringLength(20, ErrorMessage = "年级长度不能超过20个字符")]
    public string Grade { get; set; }
    
    [Required(ErrorMessage = "专业不能为空")]
    [StringLength(100, ErrorMessage = "专业长度不能超过100个字符")]
    public string Major { get; set; }
    
    [Required(ErrorMessage = "系别不能为空")]
    [StringLength(100, ErrorMessage = "系别长度不能超过100个字符")]
    public string Department { get; set; }
    
    [Required(ErrorMessage = "班主任不能为空")]
    [StringLength(50, ErrorMessage = "班主任姓名长度不能超过50个字符")]
    public string HeadTeacher { get; set; }
    
    public int TotalStudents { get; set; }
    
    public DateTime CreationDate { get; set; }
}